<?php
	$ft=null;
	$topic=null;
	if (isSet ($_GET['ft']))	$ft = $_GET['ft'];
	if (isSet ($_GET['topic']))	$topic = $_GET['topic'];
	$journals = $this->getAllJournal($ft,$topic);	
	$topics = $this->getTopics ();
?>

<div id="page">
<!-- 
	<div class="title">
		<h3>Browse Journals</h3>
	</div>
	<div id="tabContaier">
		<ul id="tbContentUl">
    		<li><a class="active" href="#tab1">By Titles</a></li>
    	</ul>
    	<div class="tabDetails">
	    	<div id="tab1" class="tabContents">
				<div class="contentInTab">
					<h3>Browse Titles:</h3>
					<ul id="browseTiltesUl">
						<?php foreach($this->getFirstLetters() as $key=>$value):?>
							<?php if ($value==1):?>
								<li><a href="<?php echo Epic::getUrl('journal/article/list', array('ft'=>$key))?>"><span><?php echo $key; ?></span></a></li>
							<?php else:?>
								<li><span class="noItem"><?php echo $key; ?></span></li>
							<?php endif;?>
						<?php endforeach;?>
					</ul>
				</div>
	        </div>
    	</div>
	</div>
	 -->
	<div id="sidebar"> 
                <div class="content"> 
                  <div class="sidebox1"> 
                    <h2 style="border-radius: 5px 5px 5px 5px;">Publication Year</h2>
					 <form class="form-horizontal" id="slideSearch" >
					  <div class="control-group">
						<label class="control-label" for="inputFrom">From</label>
						<div class="controls">
						  <input type="text" class="span2" id="inputFrom" placeholder="From" onchange="requestDataFrom()" name="filedFrom" value="">
						</div>
					  </div>
					  <div class="control-group">
						<label class="control-label" for="inputTo">To</label>
						<div class="controls">
						  <input type="text" class="span2" id="inputTo" placeholder="To" onchange="requestDataTo()" name="filedTo" value="" >
						</div>
					  </div>
					  </form>
                  </div> 
                  <div class="sidebox1"> 
                    <h2 style="border-radius: 5px 5px 5px 5px;">Topics</h2>  
                    <div class="vmenu"> 
                      <ul>
                      <?php foreach ($topics as $topic):?>
                        <li>
                          <div>
							<label>
								<input type="checkbox" value="<?php echo $topic['id_topic']?>" name="Topic" id="topic_<?php echo $topic['id_topic']?>" class="refinement-selector" onclick="requestDataTopic (<?php echo $topic['id_topic']?>)"> 
								<span class="refinement"> <?php echo $topic['name']?>
								</span> 							
							</label>
							</div>
                        </li>
                        <?php endforeach;?>
                      </ul> 
                    </div> 
                  </div>
                  
                </div> 
              </div>
	<div id="main"> 
		<div class="content"> 
	     	<div class="column_slider" id="primary-content"> 
		<div class="results-display" id="results-display">			
			66 Results Returned
		</div>
		<div class="loop-results-display" id="loop-results-display">
			<?php if($journals):?>
				<?php foreach($journals as $journal):?>
					<div class="detail_rs" >
						<div class="reveal-content-title-full">
							<h3 class="journals-content-title">
								<a href="<?php echo Epic::getUrl('journal/article/listPager', array('id_journal'=>$journal['id_journal']))?>"><?php echo $journal['name']?></a>
							</h3>
							<p class="smFont">            				
									<span class="detailTitle">Publish Years: </span> 2013 
									<span class="pushLeft20">
										<a href="/xpl/mostRecentIssue.jsp?punumber=6287639">
										Most Recent Issue
										</a>
									</span>
							</p>
						</div>
						<div class="ClearFix"></div>
					</div>
					<div class="ClearFix"></div>
				<?php endforeach;?>
			<?php else:?>
				<span style="color: blue;">Articles do not appear in this category</span>
			<?php endif;?>
		</div>
	</div>
		</div> 
	 </div>  
	 <!-- END MAIN -->  
	 <div style="height:60px" class="clear"></div> 
</div> 